import type { UserInfo } from '@vben/types';

import { requestClient } from '#/api/request';

export interface userInfoParams {
  uid: number | string;
}
/**
 * 获取用户信息
 */
export async function getUserInfoApi(data: userInfoParams) {
  return requestClient.get<UserInfo>('/user/info', {
    params: data,
  });
}
